(window.webpackJsonp=window.webpackJsonp||[]).push([["4f9279"],{"3jAx":function(e,t,o){},Gmoc:function(e,t,o){},kCzD:function(e,t,o){},vhnn:function(e,t,o){"use strict";o.r(t),o.d(t,"Tooltip",(function(){return x}));var n,i=o("WvKr"),a=o("rKag"),s=o("G9no"),c=o("LTOo"),l=(o("kCzD"),Object(a.createClassNameModifier)(Object(c.b)(),{theme:"white"})),r=o("6C/S"),p=(o("Gmoc"),Object(a.createClassNameModifier)(Object(c.b)(),{icon:"emblem"})),u=o("wcMH"),b=o("iler"),f=o("YjSn"),g=o("qVUZ"),O=o("Dps+"),m=Object(O.cn)("VanillaTooltip")(""),j=Object(a.compose)(s.a,l,r.a,p)(u.a),_=Object(a.compose)(b.a,f.a)(g.a),d=new i.Registry({id:m}).fill({Tooltip:j,Link:_}),v=o("mrSG"),w=o("cDcd"),h=o.n(w),T=["resize","scroll","orientationchange"],y=Object(i.withRegistry)(d)((function(e){var t,o=e.tooltip,n=e.tooltipData,a=Object(i.useComponentRegistry)(m),s=a.Link,c=a.Tooltip,l=n.text,r=n.url,p=n.theme,u=n.icon,b=n.className,f=n.linkClassName,g=n.urlText,O=null==o?void 0:o.visible,j=null==o?void 0:o.onClose;return t=Array.isArray(l)?l.reduce((function(e,t,o){return e.push("string"==typeof t?h.a.createElement("span",{key:o,dangerouslySetInnerHTML:{__html:t}}):h.a.createElement(s,{key:o,theme:"normal",url:t.url,target:t.target||void 0,className:"link"},t.text)),e}),[]):b?h.a.createElement("div",{className:b},l):l,Object(w.useEffect)((function(){if(O&&j)return T.forEach((function(e){return window.addEventListener(e,j)})),function(){T.forEach((function(e){return window.removeEventListener(e,j)}))}}),[O,j]),h.a.createElement(c,Object(v.__assign)({},o,{hasTail:!0,icon:u,theme:p||"promo",view:"default",mainOffset:-2}),t,r&&h.a.createElement(s,{className:f,theme:"ghost",url:r},g))})),C=o("3nHn"),E=o("o2B9"),R=new i.Registry({id:E.a}).fill({Tooltip:y,ReviewsTooltip:Object(C.withBaobab)({name:"offer-reviews-tooltip"},y)}),k=o("8MOd"),N=o("0jHf");!function(e){e[e.Open=0]="Open",e[e.Close=1]="Close",e[e.Toggle=2]="Toggle"}(n||(n={}));var L=function(e,t){var o;switch(t.type){case n.Toggle:return(o=t.props||e)?Object(v.__assign)(Object(v.__assign)({},o),{tooltip:Object(v.__assign)(Object(v.__assign)({},o.tooltip),{visible:!(e&&e.tooltip&&e.tooltip.visible)})}):null;case n.Open:return o=t.props,Object(v.__assign)(Object(v.__assign)({},o),{tooltip:Object(v.__assign)(Object(v.__assign)({},o.tooltip),{visible:!0})});case n.Close:return e?Object(v.__assign)(Object(v.__assign)({},e),{tooltip:Object(v.__assign)(Object(v.__assign)({},e.tooltip),{visible:!1})}):null}},x=(o("3jAx"),Object(i.withRegistry)(R)((function(e){var t=Object(i.useComponentRegistry)(E.a),o=t.Tooltip,a=t.ReviewsTooltip,s=Object(v.__read)(h.a.useReducer(L,null),2),c=s[0],l=s[1],r=h.a.useRef(null);return h.a.useEffect((function(){var e=function(e){e.tooltip&&(e.tooltip.direction=e.tooltip.direction||"bottom",e.tooltip.innerRef=r,e.tooltip.onClose=function(t){e.tooltip&&e.tooltip.anchor&&t.target===e.tooltip.anchor.current||l({type:n.Close})}),l({type:n.Toggle,props:e})},t=function(){l({type:n.Close})};return Object(N.a)().on(E.c,e).on(E.b,t),function(){Object(N.a)().off(E.c,e).off(E.b,t)}}),[e]),c?h.a.createElement(C.BaobabAppendTo,{parentNode:c.baobabParent,logger:k.a},"reviewsTooltip"===c.tooltipType?h.a.createElement(a,Object(v.__assign)({},c)):h.a.createElement(o,Object(v.__assign)({},c))):null})))}}]);